import unittest
import HTMLTestRunner
from testcase.test_addUser import test_addUser
from testcase.test_addGoods import test_addGoods


class start:
    def start(self):
        su = unittest.TestSuite()
        su.addTest(unittest.makeSuite(test_addGoods))
        su.addTest(unittest.makeSuite(test_addUser))
        f = open("report.html", "wb")
        r = HTMLTestRunner.HTMLTestRunner(
            stream=f,
            title='tinyshop测试报告',
            description="tong"
        )

        r.run(su)
        f.close()


a = start()
a.start()
